"""

author:俞婧，田新宇，杨光
create time:2020-07-07
update time:2020-07-21

coursemanage URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.conf.urls import url, include
from user import views
from course import views as c_views
from django.conf.urls.static import serve
from django.conf import settings
urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^index/', views.index),
    url(r'^login/', views.login),
    url(r'^register/', views.register),
    url(r'^logout/', views.logout),
    url(r'^captcha', include('captcha.urls')),
    url(r'^user_center/', views.user_center),
    url(r'^edit_user/', views.edit_user),
    url(r'^del_course/', views.del_course),
    url(r'^user_center/',views.user_center),
    url(r'^course/',c_views.course_page),
    url(r'^course_detail/', c_views.course_detail),
    url(r'^course_choose/$',c_views.course_choose),
    url(r'^show_course/$', views.show_course),
    url(r'^search_course/$', c_views.search_course),
    url(r'^course_school/$', c_views.course_school),
    url(r'^course_type/$', c_views.course_type),
    url(r'^findpwd/',views.findpwd),
    url(r'media/(?P<path>.*)/$', serve, {'document_root': settings.MEDIA_ROOT}),
]
